<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');?>

<div class="componentheading">
<?php echo JText::_( 'PROFILE OF THE PLAYER' ); ?>
</div>
<?php foreach ($this->row as $r){?>

<a href="<? echo JRoute::_('index.php?option='.$option.'&id='.$r->team_id.'&view=team'); ?>">
	<?php echo $r->year.', '.$r->sname.', '.$r->tname; ?>
</a>
<br/>
<?php }; ?>

<table class="playerprofile" >
<tr>
	<?php if ($this->settings->frontend_images == 1) {?>
			<td width="20%" rowspan="6">
			<img src="<?php echo $this->settings->pimage_folder.$this->row[0]->picture; ?>" />
			</td>
			<?php }?>


	<td class="lr_label"><?php echo JText::_( 'LASTANDFIRSTNAME' ); ?></td>
	<td class="lr_value"><?php echo $this->row[0]->pname; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'POSITION' ); ?></td>
	<td class="lr_value"><? echo $this->row[0]->position; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'NATIONALITY' ); ?></td>
	<td class="lr_value"><? echo $this->row[0]->nationality; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'BIRTHDAY' ); ?></td>
	<td class="lr_value"><? echo (($this->row[0]->birthday<>'0000-00-00')?
									date($this->settings->dateformat, strtotime($this->row[0]->birthday.' 00:00:00'))
									:'&nbsp;'); ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'WEIGHT' ); ?></td>
	<td class="lr_value"><? echo htmlspecialchars($this->row[0]->weight, ENT_QUOTES, 'UTF-8').'&nbsp;'; ?></td>
</tr>
<tr>
	<td class="lr_label"><?php echo JText::_( 'HEIGHT' ); ?></td>
	<td class="lr_value"><? echo htmlspecialchars($this->row[0]->height, ENT_QUOTES, 'UTF-8').'&nbsp;'; ?></td>
</tr>
<tr><td class="lr_label" colspan="3"><?php echo JText::_( 'INFO' ); ?></td></tr>
<tr><td colspan="3" class="lr_value"><? echo $this->row[0]->info; ?></td></tr>

</table>

